﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="d" uri="/WEB-INF/resource.tld" %>
<d:resource root="${ctx.resource}/build" type="script" src="js/config.js">
  <script src="${ctx.resource}/js/vendor/require.js"></script>
  <script>
    require.config({
      urlArgs: "bust=v2.6.2",
      baseUrl: '${ctx.resource}/js',
      paths: {
        'zepto': 'vendor/zepto',
        'sui': 'vendor/sm',
        'smExtend': 'vendor/sm-extend',
        'smCityPicker': 'vendor/sm-city-picker.min',
        'underscore': 'vendor/underscore',
        'handlebars': 'vendor/handlebars.amd',
        'JST': 'template/JST',
        'text': 'vendor/text',
        'wx': 'http://res.wx.qq.com/open/js/jweixin-1.6.0',
        'wxshare': 'wxshare',
        'amountControl': 'component/amount-control',
        'countDown': 'component/countdown',
        'labelSelect': 'component/label-select',
        'submitForm': 'component/submitform',
        'cityPicker': 'component/city-picker',
        'chart': 'component/chart.min',
        'iscrollProbe': 'component/iscroll-probe',
        'iScrollRefresh': 'component/iscroll-refresh'
      },
      shim: {
        'zepto': { exports: '$'},
        'sui': { deps: ['zepto'] },
        'smExtend': { deps: ['zepto','sui'] },
        'smCityPicker': { deps: ['zepto','sui'] },
        'cityPicker': { deps: ['zepto', 'sui'] },
        'amountControl': {deps: ['zepto']},
        'countDown': {deps: ['zepto']},
        'labelSelect': {deps: ['zepto']},
        'submitForm': {deps: ['zepto']},
        'chart': {deps: ['zepto']}
      },
      deps: ['zepto', 'sui'],
      callback: function($) {
        $.init()
      }
    })
  </script>
</d:resource>
<script>
  var _hmt = _hmt || [];
  (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?a3623873e289ad5c68315f7985f07097";
    var s = document.getElementsByTagName("script")[0]; 
    s.parentNode.insertBefore(hm, s);
  })();
</script>
<script type="text/javascript">
  (function(w) {
    w.__CTX__ = {
      root: '${ctx.host}',
      resource: '${ctx.resource}',
      cdn: '${cloud.prod}'
    }
  })(window)
</script>
